<?php
class Img
{
	public $id;
    public $relID;
    public $name;
	

	public function __construct($db,$id)
    {
		$reponse = $db->query('SELECT * FROM jktrade_img WHERE img_id='.$id.'');
		$data = $reponse->fetch();
		
		$this->id=$data['img_id'];
		$this->relID=$data['img_rel'];
		$this->name=$data['img_name'];
		
	}
	
	
}
?>